#include "tcppage.h"
#include "ui_tcppage.h"

TCPPage::TCPPage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::TCPPage)
{
    ui->setupUi(this);
}

TCPPage::~TCPPage()
{
    delete ui;
}

QString TCPPage::getIP()
{
    return ui->IPEdit->text();
}

void TCPPage::setIP(QString ip)
{
    ui->IPEdit->setText(ip);
}

int TCPPage::getPort()
{
    return ui->portEdit->text().toInt();
}

void TCPPage::setPort(int port)
{
    ui->portEdit->setText(QString::number(port));
}
